﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ClientLib
{
    public class GlobalDefine
    {

        //----------------------------------------------------------------------------

        public const int CLIENTMGR = 0x001;

        //----------------------------------------------------------------------------
        public const int CLIENTLOGON_REQUEST = 0x0010;
            public const int CLIENTLOGON_MODULENAME = 0;
            public const int CLIENTLOGON_MODULETYPE = 1;
            public const int CLIENTLOGON_USERNAME = 2;
            public const int CLIENTLOGON_PASSWORD = 3;
            public const int CLIENTLOGON_REGION = 4;

        public const int CLIENTLOGON_ERROR = 0x0011;
        public const int CLIENTLOGON_SUCC = 0x0012;
        public const int CLIENTLOGOFF_REQUEST = 0x0020;
        public const int CLIENTLOGOFF_ERROR = 0x0021;
        public const int CLIENTLOGOFF_SUCC = 0x0022;
        //-----------------------------------------------------------------------------

        public const int CLIENT_ACTION = 0x002;

        //------------------------------------------------------------------------------
        public const int CLIENT_FRIENDLIST_REQUEST          = 0x0010;
            public const int CLIENTFRIENDLIST_MODULENAME        = 0;
            public const int CLIENTFRIENDLIST_MODULETYPE        = 1;
            public const int CLIENTFRIENDLIST_USERNAME          = 2;
            public const int CLIENTFRIENDLIST_REGION            = 3;

        public const int CLIENT_FRIENDLIST_ERROR            = 0x0011;
        public const int CLIENT_FRIENDLIST_SUCC             = 0x0012;
            public const int CLIENTFRIENDLISTSUCC_MODULENAME    = 0;
            public const int CLIENTFRIENDLISTSUCC_MODULETYPE    = 1;
            public const int CLIENTFRIENDLISTSUCC_USERNAME      = 2;
            public const int CLIENTFRIENDLISTSUCC_REGION        = 3;
            public const int CLIENTFRIENDLISTSUCC_FRIENDLIST    = 4;
        public const int CLIENT_SERVERSTATUS_REQUEST        = 0x0020;
        public const int CLIENT_SERVERSTATUS_ERROR          = 0x0021;
        public const int CLIENT_SERVERSTATUS_SUCC           = 0x0022;

        public const int CLIENT_SEND_TXTMSG                 = 0x0030;
            public const int CLIENT_SEND_TXTMSG_MODULENAME      = 0;
            public const int CLIENT_SEND_TXTMSG_MODULETYPE      = 1;
            public const int CLIENT_SEND_TXTMSG_USERNAME        = 2;
            public const int CLIENT_SEND_TXTMSG_REGION          = 3;
            public const int CLIENT_SEND_TXTMSG_TARGET          = 4;
            public const int CLIENT_SEND_TXTMSG_MSG             = 5;

        public const int CLIENT_SEND_TXTMSG_ERROR            = 0x0031;
        public const int CLIENT_SEND_TXTMSG_SUCC             = 0x0032;
        public const int CLIENT_SEND_TXTMSG_WAIT             = 0x0033;
        public const int CLIENT_SEND_TXTMSG_FINISHED         = 0x0034;


        //-------------------------------------------------------------------------------

        public const int TINYSERVER_ACTION = 0x003;
    }
}
